package cn.zysheep.chain;

/**
 * @ClassName: Client
 * @Description: 责任链模式
 * @Author: lyw
 * @Date: 2022/10/31 23:11
 */
public class Client {
    public static void main(String[] args) {
        AppRequestHandler userHandler = new UserHandler();
        AppRequestHandler workflowHandler = new WorkflowHandler();

        userHandler.setAppRequestHandler(workflowHandler);
        userHandler.headerRequest("work");
    }
}
